package com.spsy.order.vo;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
 * @author: liuzhiping
 * @date: 2025/5/17 08:54
 **/

public class Counter {


    public Counter(){

    }
    private int i = 0;

    public void increment() {
        i = i + 1; // 非线程安全
    }

    public int getValue() {
        return i;
    }
}